|
Menü konumu |
---|
Taslak → Döndür |
Tezgahlar |
Taslak, Mimari |
Varsayılan kısayol |
R O |
Versiyonda tanıtıldı |
0.17 |
Ayrıca bkz |
Taşı, Dizi |
Döndürme aracı, seçilen nesneleri bir referans noktasının etrafındaki belirli bir açıyla döndürür veya kopyalar.
Döndür aracı, Taslak tezgahı veya Eskiz tezgahı ile oluşturulan 2D şekillerde kullanılabilir, ancak Parça tezgahı ve Mimari tezgahı ile oluşturulanlar gibi birçok 3D nesne üzerinde de kullanılabilir.
Bir merkez referans noktası kullanarak bir nesneyi, bir referans açısından başka bir açıyla döndürme
See also: Draft Snap and Draft Constrain.
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts (for version 1.0).
See also: Preferences Editor and Draft Preferences.
Ayrıca bkz.: Taslak API ve FreeCAD Betik esasları.
Döndür aracı, aşağıdaki işlevi kullanarak makrolar ve python konsolundan kullanılabilir:
rotated_list = rotate(objectslist, angle, center=Vector(0,0,0), axis=Vector(0,0,1), copy=False)
objectlist
içindeki nesnelerin temel noktasını verilen angle
ile döndürür.
objectlist
, tek bir nesne veya bir nesne listesidir.center
) ve axis
verilirse, bunlar kullanılır; Aksi taktirde rotasyon orijine ve Z ekseni etrafına dayanır. : Dönme açısı, nesnenin taban noktasına göredir, yani bir nesne 45 derece döndürülürse ve ardından bir başka 45 derece döndürülürse, orijinal konumundan toplam 90 derece döndürülür.copy
ise True
ise orijinal nesneleri döndürmek yerine kopyalar oluşturulur.rotatedlist
, orijinal döndürülmüş nesnelerle veya yeni kopyalarla birlikte döndürülür.
rotatedlist
, objectlist
girişine bağlı olarak tek bir nesne veya nesne listesidir.Örnek:
import FreeCAD as App
import Draft
doc = App.newDocument()
polygon1 = Draft.make_polygon(3, radius=300)
Draft.move(polygon1, App.Vector(1000, 0, 0))
# Rotation around the origin
angle1 = 45
rot2 = Draft.rotate(polygon1, angle1, copy=True)
rot3 = Draft.rotate(polygon1, 2*angle1, copy=True)
rot4 = Draft.rotate(polygon1, 4*angle1, copy=True)
polygon2 = Draft.make_polygon(3, radius=1000)
polygon3 = Draft.make_polygon(5, radius=500)
Draft.move(polygon2, App.Vector(2000, 0, 0))
Draft.move(polygon3, App.Vector(2000, 0, 0))
# Rotation around another point
angle2 = 60
cen = App.Vector(3100, 0, 0)
list2 = [polygon2, polygon3]
rot_list2 = Draft.rotate(list2, angle2, center=cen, copy=True)
rot_list3 = Draft.rotate(list2, 2*angle2, center=cen, copy=True)
rot_list4 = Draft.rotate(list2, 4*angle2, center=cen, copy=True)
doc.recompute()